<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>添加新用户</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/customer.css">
</head>
<body>
    <h3>添加新用户</h3>
    <div class="message">${ message }</div>
    <div class="form-container">
        <form action="${pageContext.request.contextPath}/customer/add" method="post">
            <div class="form-row">
                <label for="username">登录名称</label>
                <input type="text" name="username" value="${username}" id="username" autofocus>
            </div>
            <div class="form-row">
                <label for="password">登录密码</label>
                <input type="password" name="password" id="password">
            </div>
            <div class="form-row">
                <label for="confirm">确认密码</label>
                <input type="password" name="confirm" id="confirm">
            </div>
            <div class="form-row">
                <label for="nickname">昵称</label>
                <input type="text" name="nickname" value="${nickname}" id="nickname">
            </div>
            <div class="form-buttons">
                <button type="submit">添加</button>
            </div>
        </form>
    </div>

    <c:remove var="message" scope="session" />
    <c:remove var="username" scope="session" />
    <c:remove var="nickname" scope="session" />

</body>
</html>
